Optimal. Leaf size=38 \[ x (a B+A b)+a A \log (x)+\frac{1}{2} x^2 (A c+b B)+\frac{1}{3} B c x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0198945, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.053, Rules used = {765} \[ x (a B+A b)+a A \log (x)+\frac{1}{2} x^2 (A c+b B)+\frac{1}{3} B c x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 765
Rubi steps
\begin{align*} \int \frac{(A+B x) \left (a+b x+c x^2\right )}{x} \, dx &=\int \left (A b+a B+\frac{a A}{x}+(b B+A c) x+B c x^2\right ) \, dx\\ &=(A b+a B) x+\frac{1}{2} (b B+A c) x^2+\frac{1}{3} B c x^3+a A \log (x)\\ \end{align*}
Mathematica [A] time = 0.0117722, size = 38, normalized size = 1. \[ x (a B+A b)+a A \log (x)+\frac{1}{2} x^2 (A c+b B)+\frac{1}{3} B c x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 36, normalized size = 1. \begin{align*}{\frac{Bc{x}^{3}}{3}}+{\frac{Ac{x}^{2}}{2}}+{\frac{Bb{x}^{2}}{2}}+Abx+aBx+aA\ln \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.08282, size = 46, normalized size = 1.21 \begin{align*} \frac{1}{3} \, B c x^{3} + \frac{1}{2} \,{\left (B b + A c\right )} x^{2} + A a \log \left (x\right ) +{\left (B a + A b\right )} x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.2809, size = 86, normalized size = 2.26 \begin{align*} \frac{1}{3} \, B c x^{3} + \frac{1}{2} \,{\left (B b + A c\right )} x^{2} + A a \log \left (x\right ) +{\left (B a + A b\right )} x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.522803, size = 36, normalized size = 0.95 \begin{align*} A a \log{\left (x \right )} + \frac{B c x^{3}}{3} + x^{2} \left (\frac{A c}{2} + \frac{B b}{2}\right ) + x \left (A b + B a\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16978, size = 49, normalized size = 1.29 \begin{align*} \frac{1}{3} \, B c x^{3} + \frac{1}{2} \, B b x^{2} + \frac{1}{2} \, A c x^{2} + B a x + A b x + A a \log \left ({\left | x \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]